package com.question_barrier.vo.question;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel("题库的题目信息")
public  class QuestionDetail {
    @ApiModelProperty("状态码")
    private int code;
    @ApiModelProperty("信息")
    private String message;
    @ApiModelProperty("题目列表")
    private List<DataBean> data;
    @Data
    @ApiModel("题目")
    public static class DataBean {
        @ApiModelProperty("下标")
        private String index;
        @ApiModelProperty("题干")
        private TopicBean topic;
        @ApiModelProperty("标签")
        private String tags;
        @ApiModelProperty("答案")
        private Object answer;
        @ApiModelProperty("选项")
        private List<OptionsBean> options;

        @Data
        @ApiModel("题干")
        public static class TopicBean {
            private String id;
            private String content;
            private boolean haveFile;
        }
        @Data
        @ApiModel("选项")
        public static class OptionsBean {
            private String id;
            private String content;
            private boolean haveFile;
        }
    }
}
